<?php

/**
 * AdminController
 * 
 * @author yury patrin
 * @version 1.0
 */

class AdminController extends Zend_Controller_Action {
	public function indexAction() {
		$this->__security();
	}

	private function __security() {
		$this->session = new Zend_Session_Namespace('AdminCP');
		
		if (!isset($this->session->sid)) {
			$this->getHelper('Redirector')->gotoSimpleAndExit(null, "auth");
		}
	}
}
